package com.hyq.learn.api.rest;

import com.hyq.learn.api.service.ApplicationEventService;
import com.hyq.learn.common.response.CommonResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author heyuqin
 * @date 2025/8/27 17:08
 */
@RestController
@RequestMapping("test")
public class ApplicationEventTestController {

    @Autowired
    private ApplicationEventService applicationEventService;

    @PostMapping("push_event")
    public CommonResponse<Void> testPushEvent() {
        applicationEventService.pushEvent("test");
        return CommonResponse.success();
    }

}
